package com.generator.code.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.generator.code.model.QryTableInfo;
import com.generator.code.model.QryTableInfoReq;
import com.generator.code.service.QryInfoService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api
@RestController
@RequestMapping("/qry")
public class QryInfoController {
    @Autowired
    private QryInfoService qryInfoService;

    @PostMapping("/qryTable")
    public Page<QryTableInfo> qryTable(@RequestBody QryTableInfoReq qryTableInfoReq) {
        return qryInfoService.qryTable(qryTableInfoReq);
    }
}
